ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.DirectWrite Namespace / FontFace Class / GetGlyphIndices Method / GetGlyphIndices(Int32[]) Method
An array of USC4 code points from which to obtain nominal glyph indices. The array must be allocated and be able to contain the number of elements specified by codePointCount.

In This Topic
    GetGlyphIndices(Int32[]) Method
    In This Topic
    Returns the nominal mapping of UCS4 Unicode code points to glyph indices as defined by the font 'CMAP' table.
    Syntax
    'Declaration
     
    Public Overloads Function GetGlyphIndices( _
       ByVal codePoints() As Integer _
    ) As Short()
    public short[] GetGlyphIndices( 
       int[] codePoints
    )

    Parameters

    codePoints
    An array of USC4 code points from which to obtain nominal glyph indices. The array must be allocated and be able to contain the number of elements specified by codePointCount.

    Return Value

    a reference to an array of nominal glyph indices filled by this function.
    Remarks
    Note that this mapping is primarily provided for line layout engines built on top of the physical font API. Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond to how a Unicode string will map to glyph indices when rendering using a particular font face. Also, note that Unicode variant selectors provide for alternate mappings for character to glyph. This call will always return the default variant.
    See Also